package com.cl.service;

import com.cl.bean.User;
import com.cl.dao.UserDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service
public class UserServiceImpl implements UserService{
    @Resource
    private UserDao ud;

    //登陆
    @Override
    public User login(User user) {
        return ud.login(user);
    }

    @Override
    public int reg(User user) {
        int reg = ud.reg(user);
        return reg;
    }

}
